|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.vtp.desktop.projects.core.internals.VoiceResource
org.eclipse.vtp.desktop.projects.core.internals.DatabaseTable
public class DatabaseTable
This is a concrete implementation of IDatabaseTable
and provides the default behavior of that interface.
| Constructor Summary | |
|---|---|
DatabaseTable(Database database,
org.eclipse.core.resources.IFile file)
Creates a new DatabaseTable with the given parent
database and eclipse file resource. |
|
| Method Summary | |
|---|---|
void |
delete()
|
boolean |
equals(java.lang.Object obj)
|
java.util.List |
getColumns()
|
java.lang.String |
getName()
|
protected java.lang.String |
getObjectId()
The object id is used by the event system to uniquely identify a project resource. |
IVoiceToolsResource |
getParent()
Returns the parent of this resource. |
org.eclipse.core.resources.IFile |
getUnderlyingFile()
|
void |
processObjectEvent(ObjectEvent event)
Called when an event is generated by the object being listened to. |
void |
write(java.io.InputStream source)
Requests that the contents of the column definition resource be replace with the data provided by the given input stream. |
| Methods inherited from class org.eclipse.vtp.desktop.projects.core.internals.VoiceResource |
|---|
addRefreshListener, deferEvents, finalize, getAdapter, getProject, refresh, removeRefreshListener, resumeEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DatabaseTable(Database database,
org.eclipse.core.resources.IFile file)
DatabaseTable with the given parent
database and eclipse file resource.
database - The parent databasefile - The eclipse file resource that contains the definition
of table columns| Method Detail |
|---|
protected java.lang.String getObjectId()
VoiceResource
getObjectId in class VoiceResourcepublic java.lang.String getName()
getName in interface IDatabaseTablegetName in interface IVoiceToolsResourcepublic java.util.List getColumns()
getColumns in interface IDatabaseTableIDatabaseTableColumns defined for
this database tablepublic IVoiceToolsResource getParent()
IVoiceToolsResourcethis.
getParent in interface IVoiceToolsResource
public void write(java.io.InputStream source)
throws org.eclipse.core.runtime.CoreException
source - The input stream containing the new contents.
org.eclipse.core.runtime.CoreException - If an error occured during the file
updatepublic void processObjectEvent(ObjectEvent event)
ObjectListener
processObjectEvent in interface ObjectListenerprocessObjectEvent in class VoiceResourceevent - The event that occured
public void delete()
throws org.eclipse.core.runtime.CoreException
delete in interface IDatabaseTableorg.eclipse.core.runtime.CoreExceptionpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic org.eclipse.core.resources.IFile getUnderlyingFile()
getUnderlyingFile in interface IDatabaseTable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||